playback started call for DataStreamAudioOutput and QueueAudioOutput#4570
playback started call for DataStreamAudioOutput and QueueAudioOutput#4570chenghao-mou merged 1 commit intomainfrom
Conversation
📝 WalkthroughWalkthroughTwo avatar audio output classes now emit Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (1)**/*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧬 Code graph analysis (2)livekit-agents/livekit/agents/voice/avatar/_datastream_io.py (1)
livekit-agents/livekit/agents/voice/avatar/_queue_io.py (1)
🔇 Additional comments (3)
✏️ Tip: You can disable this entire section by setting Comment |
Bugs introduced by #4131 and it should close #4568 affecting version 1.3.11
DataStreamAudioOutputandQueueAudioOutputwhere first frame future was never resolved, leading to agent messages missed in context and session hooks.More details:
We have 7 AudioOutput subsclasses:
Internal classes and the recorder will not fire
on_playback_startedevents since other output on the chain should take care of that. We don't put this in the base class because we want to make sure it is only fired as close to the device as possible.Summary by CodeRabbit
New Features
Changes
✏️ Tip: You can customize this high-level summary in your review settings.